package ucl.cs.stockBroker.common;

import java.io.Serializable;
import java.rmi.RemoteException;

public class Stock implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String symbol;
	private String name;
	private float price;

	public Stock(String symbol, String name, float price) throws RemoteException {
		this.symbol = symbol;
		this.name = name;
		this.price = price;
	}

	public void setPrice(float price) throws RemoteException {
		this.price = price;
	}

	public String getSymbol() throws RemoteException {
		return this.symbol;
	}

	public String getName() throws RemoteException {
		return this.name;
	}

	public float getPrice() throws RemoteException {
		return this.price;
	}

}
